import request from '@/router/axios';

export const getPlanExecute = (projectId,productId,executeType,materialType,materialFlag) => {
  return request({
    url: '/api/planexecute/findAll',
    method: 'get',
    params: {
      projectId,
      productId,
      executeType,
      materialType,
      materialFlag
    }
  })
}

export const getPlanOut = (projectId,productId) => {
  return request({
    url: '/api/outreachplan/findAll',
    method: 'get',
    params: {
      projectId,
      productId
    }
  })
}

export const getPlanLogistics = (projectId,productId) => {
  return request({
    url: '/api/poshipplan/findAll',
    method: 'get',
    params: {
      projectId,
      productId
    }
  })
}

export const getTaskBook = (projectId,productId) => {
  return request({
    url: '/api/workprocedur/findAll',
    method: 'get',
    params: {
      projectId,
      productId
    }
  })
}

export const getTestBook = (projectId,productId) => {
  return request({
    url: '/api/operatinginstructions/findAll',
    method: 'get',
    params: {
      projectId,
      productId
    }
  })
}

export const getPerson = (projectId,productId) => {
  return request({
    url: '/api/personrequireplan/findAll',
    method: 'get',
    params: {
      projectId,
      productId
    }
  })
}

export const getFeatureList = (projectId,productId) => {
  return request({
    url: '/api/prdsclist/listByProductId',
    method: 'get',
    params: {
      projectId,
      productId
    }
  })
}

export const getProcessList = (projectId,productId) => {
  return request({
    url: '/api/prdprocedureflowchart/list',
    method: 'get',
    params: {
      projectId,
      productId
    }
  })
}


//产品BOM列表
export const getBom = (productNo) => {
  return request({
    url: '/api/prdbom/bomTreeByPrdNo',
    method: 'get',
    params: {
      productNo
    }
  })
}
